import { http } from "@/utils/http";
import type { HttpResult } from "@/utils/http/types";

// 获取已办任务
export function fetchToDonePage(query: object) {
  return http.request<HttpResult>("get", "/esflow/task/todone/page", {
    params: query
  });
}

// 获取节点配置信息
export function getToDoneDetail(query: object) {
  return http.request<HttpResult>("get", "/esflow/task/todone/detail", {
    params: query
  });
}

// 取回任务
export function retakeJob(obj: object) {
  return http.request<HttpResult>("put", "/esflow/task/retake", {
    data: obj
  });
}
